package com.daiTest.service;

import com.daiTest.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.daiTest.untils.Result;

/**
* @author Administrator
* @description 针对表【news_user】的数据库操作Service
* @createDate 2025-03-01 12:00:07
*/
public interface UserService extends IService<User> {



    /*用户登录业务*/
    Result login(User user);

    /*根据token 获取用户id*/
    Result getUserInfo(String token);
    /*检查账号是否可用*/
    Result cheakUserName(String username);
    /*用户注册 */
    Result regist(User user);

    /*检验token是否过期*/
    Result checkLogin(String token);


}
